<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<body>
<h2>Hello World!</h2>
<%
    response.setHeader("refresh","3;URL=login.jsp");
%>
<%String[] str={"1","2","3","4","5","6","7"};
    request.setAttribute("str",str);
%>
<c:forEach items="${str}" var="s" varStatus="status">
    <c:out value="${s}"/><br><!-- 这个是输出的标签，相当于System.out.println(s); -->
</c:forEach>
</body>
</html>
